package com.edu.bhu.admin.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.edu.bhu.common.annotation.Excel;
import com.edu.bhu.common.core.domain.BaseEntity;

/**
 * 商品对象 cos_cosmetics
 * 
 * @author wangjinao
 * @date 2022-03-17
 */
public class CosCosmetics extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品唯一标识 */
    private Long cosId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String name;

    /** 商品简介 */
    @Excel(name = "商品简介")
    private String introduce;

    /** 图片路径 */
    @Excel(name = "图片路径")
    private String image;

    /** 关联商品种类ID */
    @Excel(name = "关联商品种类ID")
    private Long type;
    /** 关联商品种类ID */
    private CosType cosType;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 计量单位 */
    @Excel(name = "计量单位")
    private String unit;

    /** 数量 */
    @Excel(name = "数量")
    private Long number;

    /** 商品状态 1.正常 2.停用 */
    @Excel(name = "商品状态 1.正常 2.停用")
    private Long status;

    /** 更新日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateDate;

    /** 删除标志 0代表存在 2代表删除 */
    private Long delFlag;

    public void setCosId(Long cosId) 
    {
        this.cosId = cosId;
    }

    public Long getCosId() 
    {
        return cosId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setIntroduce(String introduce) 
    {
        this.introduce = introduce;
    }

    public String getIntroduce() 
    {
        return introduce;
    }
    public void setImage(String image) 
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }

    public Long getNumber() {
        return number;
    }

    public void setNumber(Long number) {
        this.number = number;
    }

    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setUpdateDate(Date updateDate) 
    {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate() 
    {
        return updateDate;
    }
    public void setDelFlag(Long delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Long getDelFlag() 
    {
        return delFlag;
    }

    public CosType getCosType() {
        return cosType;
    }

    public void setCosType(CosType cosType) {
        this.cosType = cosType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("cosId", getCosId())
            .append("name", getName())
            .append("introduce", getIntroduce())
            .append("image", getImage())
            .append("type", getType())
            .append("price", getPrice())
            .append("unit", getUnit())
            .append("number", getNumber())
            .append("status", getStatus())
            .append("updateDate", getUpdateDate())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
